package com.example.maple.weatherapp.netWorkUtils;

import android.content.Context;

import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.squareup.okhttp.OkHttpClient;
/*

*
 * Created by maple on 2016/8/9.

*/

public class HttpUtils {

	Context mContext;
	RequestQueue mRequestQueue = Volley.newRequestQueue(mContext, new OkHttpStack());


	public  HttpUtils(Context context){
		mContext = context;
	}

	public void httpWebRequestString(){
		StringRequest stringRequest = new StringRequest("GET", new Response.Listener<String>() {
			@Override
			public void onResponse(String response) {

			}
		}, new Response.ErrorListener() {
			@Override
			public void onErrorResponse(VolleyError error) {

			}
		});

		mRequestQueue.add(stringRequest);
	}

}
